package com.yunfeng.web.base;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * 上面的注解@NoRepositoryBean是为了避免SpringDataJPA自动实例化才添加的
 */
@NoRepositoryBean
public interface BaseJPA<T>
        extends JpaRepository<T, Long>,
        JpaSpecificationExecutor<T>,
        QueryDslPredicateExecutor<T> {
}
